package cn.tedu.cloudcar01.mapper;

import cn.tedu.cloudcar01.pojo.entiry.User;
import cn.tedu.cloudcar01.pojo.vo.CurrentUserQuery;
import cn.tedu.cloudcar01.pojo.vo.UserQuery;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {

    UserQuery selectByUsername(String username);

    void reg(User user);

    UserQuery login(@Param("username") String username, @Param("password")String password);

    CurrentUserQuery currentUser(String username);
}
